package org.example.data;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class PositionData
{
    @JsonProperty("mapId")
    private Integer mapId;  // 定位所在楼层id

    @JsonProperty("fences")
    private List<Fence> fences;  // 电子围栏列表
    private double rxRssi;

    @Override
    public String toString() {
        return "PositionData{" +
                "mapId=" + mapId +
                ", fences=" + fences +
                ", rxRssi=" + rxRssi +
                '}';
    }

    public Integer getMapId() {
        return mapId;
    }

    public void setMapId(Integer mapId) {
        this.mapId = mapId;
    }

    public List<Fence> getFences() {
        return fences;
    }

    public void setFences(List<Fence> fences) {
        this.fences = fences;
    }

    public double getRxRssi() {
        return rxRssi;
    }

    public void setRxRssi(double rxRssi) {
        this.rxRssi = rxRssi;
    }
}
